﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicInformation.Domain
{
    /// <summary>
    /// 库存盘点
    /// </summary>
    public class InventorysModel:BaseEntity
    {
        /// <summary>
        /// 盘点id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int InventoryId {  get; set; }
        /// <summary>
        /// 盘点编号
        /// </summary>
        public string? InventoryCode {  get; set; }
        /// <summary>
        /// 盘点结果
        /// </summary>
        public int? ResultId {  get; set; }
        /// <summary>
        /// 仓库id（主键标识）
        /// </summary>
        public int? DepotId {  get; set; }
        /// <summary>
        /// 盘点类型
        /// </summary>
        public int? ITypeId {  get; set; }
        /// <summary>
        /// 盘点开始时间
        /// </summary>
        public DateTime IStartTime {  get; set; }
        /// <summary>
        /// 盘点结束时间
        /// </summary>
        public DateTime IEndTime { get; set; }
        /// <summary>
        /// 出库状态（0未出库1部分出库2已出库）
        /// </summary>
        public int? DispatchState {  get; set; }
        /// <summary>
        /// 入库状态（0未入库1部分入库2已入库）
        /// </summary>
        public int? ReceiveState {  get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public string InventoryHandler {  get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? InventoryRemark {  get; set; }
        /// <summary>
        /// 产品Id（主键唯一标识）
        /// </summary>
        public int? ProductId {  get; set; }
        /// <summary>
        /// 账面库存
        /// </summary>
        public string? BookInventory {  get; set; }
        /// <summary>
        /// 账面金额
        /// </summary>
        public int? BookAmount { get; set; }
        /// <summary>
        /// 库位Id（主键唯一标识）
        /// </summary>
        public int? LocationId {  get; set; }
        /// <summary>
        /// 盘点数量
        /// </summary>
        public string? InventoryNumber {  get; set; }
        /// <summary>
        /// 盈亏数量
        /// </summary>
        public string? ProfitLossNumber {  get; set; }
        /// <summary>
        /// 盘点状态(0盘亏1无盈亏2盘盈)
        /// </summary>
        public int? InventoryState {  get; set; }
        /// <summary>
        /// 盈亏金额
        /// </summary>
        public string? ProfitLossAmount {  get; set; }
        /// <summary>
        /// 参考单价
        /// </summary>
        public string? Price {  get; set; }
        /// <summary>
        /// 出入库状态(0未出库1未入库2出库3入库)
        /// </summary>
        public int? ProfitLossState {  get; set; }
    }
}
